﻿@using WebEntities
@using com.subb.Tools.Pager

@model PagedList<PP_Product>

@{
    ViewBag.Title = "产品展厅";
    Layout = "~/Views/Shared/_DefLayout.cshtml";
}

<div class="topadimg"><img src="/Images/banner03.jpg" /></div>
<div class="subleft">
    <h2>
        <img src="/Images/subicon02.jpg" alt="" />
        <span>产品类别</span>
    </h2>
    @Html.Action("LeftMenu", new { cataId = ViewBag.ThisCataID })
</div>
<div class="subright">
    <div class="pagepath"><a href="/"><img src="/Images/homeicon.jpg" alt="首页" /></a> &gt; <a href="/products">产品展厅</a> &gt; <a href="/products/index/@ViewBag.ThisCataID">@ViewBag.ThisCataName</a></div>
    <div class="midcontent">
        <div class="pagehead2">@ViewBag.ThisCataName<span>共有@(Model.Count)种产品</span></div>
        <ul class="prodlist">
            @foreach (var product in Model)
            {
                <li>
                    <div class="prod_idximg"><a href="/products/details/@product.ProductID" target="_blank"><img src="@product.ProductCover" alt="@product.ProductName" /></a></div>
                    <div style="padding-top:5px"><a href="/products/details/@product.ProductID" target="_blank">@product.ProductName</a></div>
                </li>
            }
        </ul>
        <div class="cls"></div>
        @Html.Pager(Model, new PagerOptions
        {
           PageIndexParameterName = "page",
           CurrentPagerItemWrapperFormatString = "<span class=\"currpage\">{0}</span>", 
                NumericPagerItemWrapperFormatString = "<span class=\"pagenum\">{0}</span>", CssClass = "pager", SeparatorHtml = "" })
    </div>
</div>
<div class="cls"></div>
